package com.gray.blog.common.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created  By zhoux 2019/09/04
 **/
@Configuration
@MapperScan("com.gray.blog.dao")
public class MybatisPlusConfig {

    /**
     * 在mybatis-config.xml 配置文件中配置拦截器
     * 分页插件
     */
   /* @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        paginationInterceptor.setLimit(100); //每页最多100条
        paginationInterceptor.setDialectType("mysql");
        return paginationInterceptor;
    }*/

}
